package com.atguigu.edu.util;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;


public class ThreadPoolUtil {
    public static ThreadPoolExecutor getTreadPool(){
        return new ThreadPoolExecutor(
            300,
            500,
            60,
            TimeUnit.SECONDS,
            new LinkedBlockingQueue<>()
        );
    }
}
